#include <stdio.h>
#include <string.h>-
int main()
{
	char arr[] = "192.168.0.254";
	char buf[20] = {0};
	strcpy(buf, arr);
	const char *p = ".";
	for(char* ret = strtok(buf, p); ret != NULL; ret = strtok(NULL, p))
	{
		printf("%s ", ret);
	}
	
	

	return 0;
}


